package com.dormitory.management.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dormitory.management.system.entity.Health;
import com.dormitory.management.system.req.HousemasterPageReq;
import com.dormitory.management.system.resp.HealthPageResp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dormitory.management.system.resp.HousemasterResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * 防疫健康表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2021-12-17
 */
@Mapper
public interface HealthMapper extends BaseMapper<Health> {
    int countTodayDeclared(@Param(Constants.WRAPPER) QueryWrapper<Integer> queryWrapper);
    int countYesterdayException(@Param(Constants.WRAPPER) QueryWrapper<Integer> queryWrapper);
    int countTodayException(@Param(Constants.WRAPPER) QueryWrapper<Integer> queryWrapper);
    Page<HealthPageResp> getHealthPageStudent(IPage<HealthPageResp> page, @Param(Constants.WRAPPER) QueryWrapper<HealthPageResp> QueryWrapper);
    Page<HealthPageResp> getHealthPageHousemaster(IPage<HealthPageResp> page, @Param(Constants.WRAPPER) QueryWrapper<HealthPageResp> QueryWrapper);
    Page<HealthPageResp> getHealthPageUser(IPage<HealthPageResp> page,@Param(Constants.WRAPPER)QueryWrapper<HealthPageResp> QueryWrapper);
}
